<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>扫描安装应用</title>
</head>
<script>
    var xhr = new XMLHttpRequest()
          xhr.open('GET', '/api/suiteAuth/getPreAuthUrl', false)
          xhr.onreadystatechange = function () {
            // readyState == 4说明请求已完成
            if (xhr.readyState == 4) {
              if (xhr.status == 200 || xhr.status == 304) {
                var res = {}
                try {
                  res = JSON.parse(xhr.response)
                } catch (e) {}
                if (res.code === 0 && res.data) {
                  window.location.href = res.data
                }
              }
            }
          }
          xhr.send()
</script>
<body>
  
</body>
</html>